package tech.aistar.mapper.trading;

import org.apache.ibatis.annotations.Select;
import tech.aistar.entity.trading.GoodsType;

import java.util.List;

/**
 * @author Ace
 * @version 1.0
 * @descriiption:本类用来演示:商品类型
 * @date 2019/9/28 0028.
 */
public interface GoodsTypeMapper {
    @Select("select*from goods_type")
    List<GoodsType> findAll();
    @Select("select id from goods_type where type_name=#{value}")
    Integer findByName(String typeName);
}
